﻿<?php 
include("conn.php");
mysql_query('SET NAMES UTF8'); 
  

class MyPrizeBean
{
	public $content;

	function __construct($content)
	{
		$this->content = $content;
	}
}


$_tag = !empty($_REQUEST['tag'])?$_REQUEST['tag']:null;



	$prize = array();
	 
 $state=1;
$rert31=mysql_query("select * from xitong ");
$rowf2=mysql_fetch_array($rert31,MYSQL_ASSOC);

if($_tag=='userXieyi'){//用户协议
	$prize[] = new MyPrizeBean($rowf2[xieyi]);
	echo json_encode($prize);
}else if($_tag=='shopXieyi'){//厂商协议
	$prize[] = new MyPrizeBean($rowf2[shopxieyi]);
	echo json_encode($prize);	
}



?>